package com.bsoft.gol.hcs.clinical.entity;

import javax.persistence.*;

/**
 * @Author impel
 * @Date 2021/5/7 10:57
 * @Description:
 * @Version 1.0
 */
@Entity
@Table(name = "ods_check_set_detail")
public class OdsCheckSetDetail {
    private int checkSetDetailId;
    private int medicalTechnologySetId;
    private String examExecuteDept;
    private String examExecuteDeptName;
    private String examTypeCode;
    private String examTypeName;
    private String examMajorItemId;
    private String examMajorItemName;
    private String examItemId;
    private String examItemName;
    private String examMethodCode;
    private String examMethodName;
    private String partsCode;
    private String partsName;
    private String pinyinCode;
    private int sort;

    @Id
    @Column(name = "check_set_detail_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getCheckSetDetailId() {
        return checkSetDetailId;
    }

    public void setCheckSetDetailId(int checkSetDetailId) {
        this.checkSetDetailId = checkSetDetailId;
    }

    @Basic
    @Column(name = "medical_technology_set_id")
    public int getMedicalTechnologySetId() {
        return medicalTechnologySetId;
    }

    public void setMedicalTechnologySetId(int medicalTechnologySetId) {
        this.medicalTechnologySetId = medicalTechnologySetId;
    }

    @Basic
    @Column(name = "exam_execute_dept")
    public String getExamExecuteDept() {
        return examExecuteDept;
    }

    public void setExamExecuteDept(String examExecuteDept) {
        this.examExecuteDept = examExecuteDept;
    }

    @Basic
    @Column(name = "exam_execute_dept_name")
    public String getExamExecuteDeptName() {
        return examExecuteDeptName;
    }

    public void setExamExecuteDeptName(String examExecuteDeptName) {
        this.examExecuteDeptName = examExecuteDeptName;
    }

    @Basic
    @Column(name = "exam_type_code")
    public String getExamTypeCode() {
        return examTypeCode;
    }

    public void setExamTypeCode(String examTypeCode) {
        this.examTypeCode = examTypeCode;
    }

    @Basic
    @Column(name = "exam_type_name")
    public String getExamTypeName() {
        return examTypeName;
    }

    public void setExamTypeName(String examTypeName) {
        this.examTypeName = examTypeName;
    }

    @Basic
    @Column(name = "exam_major_item_id")
    public String getExamMajorItemId() {
        return examMajorItemId;
    }

    public void setExamMajorItemId(String examMajorItemId) {
        this.examMajorItemId = examMajorItemId;
    }

    @Basic
    @Column(name = "exam_major_item_name")
    public String getExamMajorItemName() {
        return examMajorItemName;
    }

    public void setExamMajorItemName(String examMajorItemName) {
        this.examMajorItemName = examMajorItemName;
    }

    @Basic
    @Column(name = "exam_item_id")
    public String getExamItemId() {
        return examItemId;
    }

    public void setExamItemId(String examItemId) {
        this.examItemId = examItemId;
    }

    @Basic
    @Column(name = "exam_item_name")
    public String getExamItemName() {
        return examItemName;
    }

    public void setExamItemName(String examItemName) {
        this.examItemName = examItemName;
    }

    @Basic
    @Column(name = "exam_method_code")
    public String getExamMethodCode() {
        return examMethodCode;
    }

    public void setExamMethodCode(String examMethodCode) {
        this.examMethodCode = examMethodCode;
    }

    @Basic
    @Column(name = "exam_method_name")
    public String getExamMethodName() {
        return examMethodName;
    }

    public void setExamMethodName(String examMethodName) {
        this.examMethodName = examMethodName;
    }

    @Basic
    @Column(name = "parts_code")
    public String getPartsCode() {
        return partsCode;
    }

    public void setPartsCode(String partsCode) {
        this.partsCode = partsCode;
    }

    @Basic
    @Column(name = "parts_name")
    public String getPartsName() {
        return partsName;
    }

    public void setPartsName(String partsName) {
        this.partsName = partsName;
    }
    @Basic
    @Column(name = "pinyin_code")
    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }
    @Basic
    @Column(name = "sort")
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OdsCheckSetDetail that = (OdsCheckSetDetail) o;

        if (checkSetDetailId != that.checkSetDetailId) {
            return false;
        }
        if (medicalTechnologySetId != that.medicalTechnologySetId) {
            return false;
        }
        if (sort != that.sort) {
            return false;
        }
        if (examExecuteDept != null ? !examExecuteDept.equals(that.examExecuteDept) : that.examExecuteDept != null) {
            return false;
        }
        if (examExecuteDeptName != null ? !examExecuteDeptName.equals(that.examExecuteDeptName) : that.examExecuteDeptName != null) {
            return false;
        }
        if (examTypeCode != null ? !examTypeCode.equals(that.examTypeCode) : that.examTypeCode != null) {
            return false;
        }
        if (examTypeName != null ? !examTypeName.equals(that.examTypeName) : that.examTypeName != null) {
            return false;
        }
        if (examMajorItemId != null ? !examMajorItemId.equals(that.examMajorItemId) : that.examMajorItemId != null) {
            return false;
        }
        if (examMajorItemName != null ? !examMajorItemName.equals(that.examMajorItemName) : that.examMajorItemName != null) {
            return false;
        }
        if (examItemId != null ? !examItemId.equals(that.examItemId) : that.examItemId != null) {
            return false;
        }
        if (examItemName != null ? !examItemName.equals(that.examItemName) : that.examItemName != null) {
            return false;
        }
        if (examMethodCode != null ? !examMethodCode.equals(that.examMethodCode) : that.examMethodCode != null) {
            return false;
        }
        if (examMethodName != null ? !examMethodName.equals(that.examMethodName) : that.examMethodName != null) {
            return false;
        }
        if (partsCode != null ? !partsCode.equals(that.partsCode) : that.partsCode != null) {
            return false;
        }
        if (partsName != null ? !partsName.equals(that.partsName) : that.partsName != null) {
            return false;
        }
        return pinyinCode != null ? pinyinCode.equals(that.pinyinCode) : that.pinyinCode == null;
    }

    @Override
    public int hashCode() {
        int result = checkSetDetailId;
        result = 31 * result + medicalTechnologySetId;
        result = 31 * result + (examExecuteDept != null ? examExecuteDept.hashCode() : 0);
        result = 31 * result + (examExecuteDeptName != null ? examExecuteDeptName.hashCode() : 0);
        result = 31 * result + (examTypeCode != null ? examTypeCode.hashCode() : 0);
        result = 31 * result + (examTypeName != null ? examTypeName.hashCode() : 0);
        result = 31 * result + (examMajorItemId != null ? examMajorItemId.hashCode() : 0);
        result = 31 * result + (examMajorItemName != null ? examMajorItemName.hashCode() : 0);
        result = 31 * result + (examItemId != null ? examItemId.hashCode() : 0);
        result = 31 * result + (examItemName != null ? examItemName.hashCode() : 0);
        result = 31 * result + (examMethodCode != null ? examMethodCode.hashCode() : 0);
        result = 31 * result + (examMethodName != null ? examMethodName.hashCode() : 0);
        result = 31 * result + (partsCode != null ? partsCode.hashCode() : 0);
        result = 31 * result + (partsName != null ? partsName.hashCode() : 0);
        result = 31 * result + (pinyinCode != null ? pinyinCode.hashCode() : 0);
        result = 31 * result + sort;
        return result;
    }
}
